package cn.buk.tms.sc;

import cn.buk.common.sc.CommonSearchCriteria;

public class SearchReceiptCriteria extends CommonSearchCriteria {

    /**
     * 收款单号
     */
    private String receiptNo;

    /**
     * 收款单金额
     */
    private int amount;

    private String bePaid;

    private String customerEnterpriseId;

    /**
     * 审核状态
     * -1 - 都可以
     *  0/null - 未审核
     *  1 - 已审核
     */
    private int reviewed = -1;

    /**
     * 供应商ID
     */
    private int supplierId = -1;

    /**
     * 是否已结算
     * -1 - 都可以
     *  0 - 未结算
     *  1 - 已结算
     */
    private int settled = -1;

    /**
     * 客户的id
     */
    private int customerId = -1;

    private String costCenter;

    /**
     * 该账单客户的付款方式
     * 0-不限
     * 1-现金；
     * 2-信用卡；
     * 4-支票；
     * 8-记账
     */
    private int payType;

    /**
     * -1 所有
     * 0 - 收款单
     * 1 - 退款单
     */
    private int receiptType = -1;

    /**
     * 用户模糊匹配客户名称或编码
     */
    private String likeCustomerName;

    public String getBePaid() {
        return bePaid == null ? "" : bePaid;
    }

    public void setBePaid(String bePaid) {
        this.bePaid = bePaid;
    }

    public String getCustomerEnterpriseId() {
        return customerEnterpriseId == null ? "" : customerEnterpriseId.trim();
    }

    public void setCustomerEnterpriseId(String customerEnterpriseId) {
        this.customerEnterpriseId = customerEnterpriseId;
    }

    public int getReviewed() {
        return reviewed;
    }

    public void setReviewed(int reviewed) {
        this.reviewed = reviewed;
    }

    public int getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(int supplierId) {
        this.supplierId = supplierId;
    }

    public int getSettled() {
        return settled;
    }

    public void setSettled(int settled) {
        this.settled = settled;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public String getCostCenter() {
        return costCenter == null ? "": costCenter.trim();
    }

    public void setCostCenter(String costCenter) {
        this.costCenter = costCenter;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getReceiptNo() {
        return receiptNo == null ? "": receiptNo.trim();
    }

    public void setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getReceiptType() {
        return receiptType;
    }

    public void setReceiptType(int receiptType) {
        this.receiptType = receiptType;
    }

    public String getLikeCustomerName() {
        return likeCustomerName;
    }

    public void setLikeCustomerName(String likeCustomerName) {
        this.likeCustomerName = likeCustomerName;
    }
}
